﻿<%@ Page Title="" Language="C#" MasterPageFile="~/MasterPages/Popup.master" AutoEventWireup="true" CodeFile="NewsletterTest.aspx.cs" Inherits="Pages_Admin_NewsletterTest" %>

<asp:Content ID="Content1" ContentPlaceHolderID="PageHeader" Runat="Server">
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="PageBody" Runat="Server">
    <div style="margin:10px;">
        <h4 id="h4Heading" runat="server">Test Newsletter</h4>    
        <div id="divMessage" runat="server" visible="false" enableviewstate="false"></div>    
        <div class="clearboth"></div>

       <asp:Panel ID="pnlFormContainer" runat="server" DefaultButton="btnSend">
            <table cellpadding="3" cellspacing="0" style="width:100%;">
                <colgroup>
                    <col style="width:125px;" />
                    <col /> 
                </colgroup>
			    <tr>
				    <td>To Email<span class="requiredMark">*</span></td>
				    <td>
					    <asp:TextBox ID="txtEmail" runat="server" MaxLength="100"></asp:TextBox>
					    <asp:RequiredFieldValidator ID="rfvEmail" runat="server"
						    ControlToValidate="txtEmail" SetFocusOnError="true"
						    ErrorMessage="Please Enter an Email." Display="Dynamic"
						    ValidationGroup="SaveInfo">
					    </asp:RequiredFieldValidator>
                        <asp:RegularExpressionValidator ID="RegularExpressionValidator1" runat="server" 
                            ValidationExpression="\w+([-+.']\w+)*@\w+([-.]\w+)*\.\w+([-.]\w+)*"
                            ControlToValidate="txtEmail" Display="Dynamic" SetFocusOnError="true"
                            ErrorMessage="Please enter a valid Email address."
                            ValidationGroup="SaveInfo">
                        </asp:RegularExpressionValidator>
				    </td>
			    </tr>
                <tr>
                    <td>Newsletter Subject</td>
                    <td><asp:Label ID="lblSubject" runat="server"></asp:Label></td>
                </tr>
                <tr>
				    <td colspan="2">
                        <div id="divNewsletterHtml" runat="server" style="border:Green 1px solid; padding:10px;"></div>
				    </td>
			    </tr>

            </table>

            <div class="ButtonContainer">
                <asp:Button ID="btnSend" runat="server" Text="Send" OnClick="btnSend_Click" ValidationGroup="SaveInfo" />
            </div>
        </asp:Panel>
    </div>
</asp:Content>

